//
//  ViewController2.m
//  东信
//
//  Created by love on 14-7-29.
//  Copyright (c) 2014年 DXin. All rights reserved.
//

#import "ViewController2.h"
#import "Header.h"
@interface ViewController2 ()

@end

@implementation ViewController2
{
    UIImageView *_imageViews;
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
-(void)tabHead
{
    _imageViews =[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"df.png"]];
    _imageViews.frame =CGRectMake(0, 0, DeviceWidth, 64);
    UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(0, 25, _imageViews.frame.size.width, 30)];
    label.text=@"微商城";
    label.textColor=[UIColor yellowColor];
    label.backgroundColor =[UIColor clearColor];
    label.textAlignment =NSTextAlignmentCenter;
    [_imageViews addSubview:label];
    [self.view addSubview:_imageViews];
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    [self tabHead];
    if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)])
    {
        self.edgesForExtendedLayout = UIRectEdgeNone;
    }
    UIWebView* webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height-112)];
    
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://182.92.157.215/index.php?g=Wap&m=Store&a=cats&token=d35753df4969f95"]]];
    [self.view addSubview:webView];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
